package cc.comac.mom.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.QualitySapPurchaseOrderService;
import cc.comac.mom.bean.QualitySapPurchaseOrder;
import cc.comac.mom.util.ResultBean;

@RestController
@RequestMapping("/QualitySapPurchaseOrder")
public class QualitySapPurchaseOrderController {
	@Autowired
	private QualitySapPurchaseOrderService qualitySapPurchaseOrderService;

	@RequestMapping(value = "/selectBySomeField", method = RequestMethod.POST)
	public ResultBean selectBySomeField(@RequestBody QualitySapPurchaseOrder qualitySapPurchaseOrder) {
		ResultBean selectBySomeField = qualitySapPurchaseOrderService.selectBySomeField(qualitySapPurchaseOrder);
		return selectBySomeField;
	}

}
